package org.example.entity;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @BelongsProject: StudentSystem
 * @BelongsPackage: org.example.entity
 * @Author: StarBonny
 * @CreateTime: 2024-12-22  23:20
 * @Description: 题目实体类
 * @Version: 1.0
 */
public class Question {
    private int questionId;
    private String questionText;
    private String answer;
    private int score;
    private int questionTypeIdFk;
    private int teacherIdFk;
    private Date submitDate;

    @Override
    public String toString() {
        return "Question{" +
                "questionId=" + questionId +
                ", questionText='" + questionText + '\'' +
                ", answer='" + answer + '\'' +
                ", score=" + score +
                ", questionTypeIdFk=" + questionTypeIdFk +
                ", teacherIdFk=" + teacherIdFk +
                ", submitDate=" + submitDate +
                '}';
    }

    public int getQuestionId() {
        return questionId;
    }

    public void setQuestionId(int questionId) {
        this.questionId = questionId;
    }

    public String getQuestionText() {
        return questionText;
    }

    public void setQuestionText(String questionText) {
        this.questionText = questionText;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public int getQuestionTypeIdFk() {
        return questionTypeIdFk;
    }

    public void setQuestionTypeIdFk(int questionTypeIdFk) {
        this.questionTypeIdFk = questionTypeIdFk;
    }

    public int getTeacherIdFk() {
        return teacherIdFk;
    }

    public void setTeacherIdFk(int teacherIdFk) {
        this.teacherIdFk = teacherIdFk;
    }

    public Date getSubmitDate() {
        return submitDate;
    }

    public void setSubmitDate(Date submitDate) {
        this.submitDate = submitDate;
    }

    public Question() {
    }

    public Question(int questionId, String questionText, String answer, int score, int questionTypeIdFk, int teacherIdFk, Date submitDate) {
        this.questionId = questionId;
        this.questionText = questionText;
        this.answer = answer;
        this.score = score;
        this.questionTypeIdFk = questionTypeIdFk;
        this.teacherIdFk = teacherIdFk;
        this.submitDate = submitDate;
    }
}
